package com.xnyzc.lhy.mis.entity.vehicle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 
*
* @author cuixiaojian
* @since 2021-12-03
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaCVehicleInsurance对象", description="")
public class OaCVehicleInsurance implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="insurance_id", type = IdType.INPUT)
    private Long insuranceId;

    @ApiModelProperty(value = "保险生效时间")
    private Date effectiveTime;

    @ApiModelProperty(value = "保险到期时间")
    private Date expireTime;

    @ApiModelProperty(value = "投保公司名")
    private String insuranceCompany;

    @ApiModelProperty(value = "车牌号")
    private String  vehNo;

    @ApiModelProperty(value = "保单号")
    private String policyNumber;

    @ApiModelProperty(value = "投保类型（参见字典表）")
    private String insuranceType;

    @ApiModelProperty(value = "投保费用")
    private BigDecimal insuranceFee;

    @ApiModelProperty(value = "保额（单位：元）向部级提交的")
    private BigDecimal insuranceAmount;

    @ApiModelProperty(value = "图片")
    private String images;

    @ApiModelProperty(value = "被保人")
    private String insuredPeople;

    @ApiModelProperty(value = "处理人ID")
    private Long userId;

    @ApiModelProperty(value = "用户类型（0：管理员、1：司机）")
    private Integer userType;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "1:新增 2:更新 3:删除扩展字段3")
    private Integer flag;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String INSURANCE_ID = "insurance_id";

    public static final String EFFECTIVE_TIME = "effective_time";

    public static final String EXPIRE_TIME = "expire_time";

    public static final String INSURANCE_COMPANY = "insurance_company";

    public static final String  VEH_NO = " veh_no";

    public static final String POLICY_NUMBER = "policy_number";

    public static final String INSURANCE_TYPE = "insurance_type";

    public static final String INSURANCE_FEE = "insurance_fee";

    public static final String INSURANCE_AMOUNT = "insurance_amount";

    public static final String IMAGES = "images";

    public static final String INSURED_PEOPLE = "insured_people";

    public static final String USER_ID = "user_id";

    public static final String USER_TYPE = "user_type";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String FLAG = "flag";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
